package com.q.springboot.framework.exception;

import com.q.springboot.framework.enums.ResultCode;
import lombok.Getter;
import lombok.Setter;

/**
 * 自定义token异常
 */
@Getter
@Setter
public class TokenException extends RuntimeException {

    private ResultCode resultCode;

    public TokenException() {
        super();
    }

    public TokenException(ResultCode resultCode) {
        super(resultCode.message());
    }

}